home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 August / Chip_1999-08_cd.bin / sharewar / htmltool / _SETUP.1 / Fake Counter.scp < prev    next >
Text File  |  1998-04-12  |  722b  |  29 lines

  1. <HTMLtool>Fake counter that displays random values</HTMLtool>
  2. <!-- TWO STEPS TO INSTALL FAKE COUNTER:
  3.  
  4.    1.  Paste the coding into the HEAD of your HTML document
  5.    2.  Copy the last coding into the BODY of your HTML document  -->
  6.  
  7. <!-- STEP ONE: Copy this code into the HEAD of your HTML document  -->
  8.  
  9. <HEAD>
  10.  
  11. <SCRIPT LANGUAGE="JavaScript">
  12. <!-- Begin
  13. var ran
  14. ran = Math.round(Math.random()*50000)
  15. function alertUser() {
  16. alert("You are visitor number " + ran + " to this page.")
  17. }
  18. // End -->
  19. </SCRIPT>
  20.  
  21. <!-- STEP TWO: Copy this last code into the HEAD of your HTML document  -->
  22.  
  23. <BODY>
  24.  
  25. <CENTER>
  26. <FORM>
  27. <INPUT TYPE="button" VALUE="How many visits?"  ONCLICK="alertUser()">
  28. </FORM>
  29. </CENTER>